

url = 'jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=utf8'
driver = 'com.mysql.jdbc.Driver'
username = 'root'
passwd = 'aaaaaaaa'

//创建sql实例
def sql = Sql.newInstance(url, username, passwd, driver)
print(sql)